﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using ChungNhanSinhVien.Entities;

namespace ChungNhanSinhVien.Models
{
    public class TrangThaiYeuCauRepository
    {
        Web_ChungNhanSinhVienEntities data;
        public TrangThaiYeuCauRepository()
        {
            data = new Web_ChungNhanSinhVienEntities();
        }

        public string LayTenTrangThaiTheoID(int id)
        {
            var kq = (from m in data.TrangThaiYeuCaus
                      where m.ID.Equals(id)
                      select m.TenTrangThai).FirstOrDefault();
            return kq;
        }
    }
}